local letters `"d e s"'


import delimited "$dir/Model/Simulated_data/simulated_data_base.csv", clear
ren v1 state_born
ren v25 parent_pctile
ren v26 kid_pctile
keep if parent_pctile<50
collapse (mean) kid, by(state_born)
su kid	

foreach l in `letters'{
    import delimited "$dir/Model/Simulated_data/simulated_data_decomp_`l'.csv", clear
	ren v1 state_born
	ren v25 parent_pctile
	ren v26 kid_pctile
	keep if parent_pctile<50
	collapse (mean) kid, by(state_born)
	su kid	
}



//end of dofile